class AddContributionInfoToOrganizations < ActiveRecord::Migration
  def self.up
    add_column :organizations, :recent_contr, :datetime
    add_column :organizations, :contr_count, :integer, :default => 0
    add_index :organizations, :contr_count
    add_index :organizations, :recent_contr
  end

  def self.down
    remove_index :organizations, :contr_count
    remove_index :organizations, :recent_contr
    remove_column :organizations, :contr_count
    remove_column :organizations, :recent_contr    
  end
end
